package cn.initcap.repository.spec;


import cn.initcap.domain.Admin;
import cn.initcap.dto.AdminCondition;
import cn.initcap.repository.support.InitcapSpecification;
import cn.initcap.repository.support.QueryWraper;

/**
 * @author initcap
 * @date 2018/5/22 AM10:15
 */
public class AdminSpec extends InitcapSpecification<Admin, AdminCondition> {

    public AdminSpec(AdminCondition condition) {
        super(condition);
    }

    @Override
    protected void addCondition(QueryWraper<Admin> queryWraper) {
        addLikeCondition(queryWraper, "username");
    }

}
